package object;

public class ToStringDemo {
    public static void main(String[] args) {
        Point p = new Point(10, 20);
        System.out.println(p); //object.Point@74a14482 返回类的全称@HashCode值
        System.out.println(p.toString()); //object.Point@74a14482
    }
}
